<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{text-align: center;}
    </style>
</head>
<body>
    <%- include('header'); -%>
    <h2>商品展示</h2>
    <ol style="width:360px;margin:0px auto;text-align:left;line-height:50px;">
        <% goodsList.forEach(goods => { %>
             <li>
                <%= goods.name %> &nbsp;&nbsp;
                ￥<%= goods.price.toFixed(2) %> 元 &nbsp;&nbsp;
                <a href="/add?gid=<%= goods.id %>">放入购物车</a>
            </li>
        <% }) %>
    </ol>
</body>
</html>